#region Using directives

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

#endregion

namespace FighterChess
{
    /// <summary>
    /// Summary description for Fighting.
    /// </summary>
    public class frmFighting : System.Windows.Forms.Form
    {

        public frmFighting()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Label();
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(75, 150);
            this.label1.Size = new System.Drawing.Size(100, 20);
            this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            // 
            // frmFighting
            // 
            this.BackColor = System.Drawing.Color.Red;
            this.ClientSize = new System.Drawing.Size(240, 320);
            this.ControlBox = false;
            this.Controls.Add(this.label1);
            this.Location = new System.Drawing.Point(0, 0);
            this.Text = "Fighting";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Load += new System.EventHandler(this.frmFighting_Load);

        }

        #endregion

        private Label label1;

        private Timer timer;
        private int repeatTimes = 0;

        private void frmFighting_Load(object sender, EventArgs e)
        {
            timer = new Timer();
            timer.Tick += new EventHandler(timer_Tick);
            timer.Interval += 1000;
            timer.Enabled = true;
        }

        void timer_Tick(object sender, EventArgs e)
        {
            if (repeatTimes == 10)
            {
                timer.Enabled = false;
                this.DialogResult = DialogResult.OK;
            }
            this.label1.Text = repeatTimes.ToString();
            repeatTimes++;
        }
    }
}
